package data_creation;

import java.sql.*;

public class DataUpload {
	
	String dbtime;
	String dbUrl = "jdbc:mysql://your.database.domain/yourDBname";
	String dbClass = "com.mysql.jdbc.Driver";
	String query = "INSERT INTO `databsename`.`tablename` VALUES (`feld1daten`, ...)";
	
	
	public void getConnection() {
		try {
			Class.forName("com.mysql.jdbc.Driver");
			Connection con = DriverManager.getConnection(dbUrl);
			Statement stmt = con.createStatement();
			stmt.executeQuery(query);
			
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e){
			e.printStackTrace();
		}
		
	}

}
